/*
 * @Author: XieQiu
 * @Date: 2021-12-23  08:47:33
 * @LastEditTime: 2022-01-18 14:49:27
 * @LastEditors: Please set LastEditors
 * @Description: 人员奖惩积分接口
 */
// import xjaxios from "@/api/axios-line";
// import xjaxiosTwoline from "@/api/axios-systemMark";
import xjaxios from "@/api/axios";

export default {
  /**
   * @description: 获取人员奖惩积分列表 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {componyId: 1} *
   * @param {String} order 排序方式 ASC DESC 默认ASC
   * @param {String} sort 自定义排序方式 'createTime'
   * @return {Array}
   */
  getPersonIntegralRewardList(params) {
    return xjaxios.post("v3/performance/personnelCurrentIntegral/queryPageList", params)
  },
  // /**
  //  * @description: 条件查询所有员工
  //  * @param null *
  //  * @return {Object}
  //  */
  getStaffListByCondition() {
    return xjaxios.post("v3/organization/personDepartmentMapper/queryByCondition", {
      organizationNo: sessionStorage.organizationNo
    });
  },
  getByCondition(param) {
    // page: 1, size: 10
    // param.organizationNo = JSON.parse(organizationNo)
    return xjaxios.post(`v3/performance/personnelReward/queryByCondition`,
      param
    );
  }
};
